import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-03-16
 * Time: 17:06
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int type = sc.nextInt();
        switch(type){
            case 1: test1(sc);break;
            case 2: test2(sc);break;
            case 3: test3(sc);break;
            case 4: test4(sc);
        }
    }

    public static void test1(Scanner sc) {
        Student stu1 = new Student();
        Student stu2 = new Student();
        System.out.println("学生总数为："+stu2.getStuNum());
    }
    public static void test2(Scanner sc) {
        Course course1 = new Course();
        Course course2 = new Course();
        Course course3 = new Course();
        System.out.println("课程总数为："+course3.getcNum());
    }
    public static void test3(Scanner sc) {
        Student stu = new Student(sc.next(), sc.next());
        Course course1 = new Course();
        Course course2 = new Course();

        course1.setcID(sc.next());
        course1.setcName(sc.next());
        course2.setcID(sc.next());
        course2.setcName(sc.next());

        Schedule sch = new Schedule();
        sch.addCourse(stu, course1);
        sch.addCourse(stu, course2);

        System.out.println("学生选课的总数为："+course2.getcNum());
        System.out.println("学生选课情况如下：");

        sch.displayCourse();
    }
    public static void test4(Scanner sc) {

        Student stu1 = new Student(sc.next(), sc.next());
        Student stu2 = new Student(sc.next(), sc.next());
        Student stu3 = new Student(sc.next(), sc.next());

        Course course1 = new Course(sc.next(), sc.next());
        Course course2 = new Course(sc.next(), sc.next());
        Course course3 = new Course(sc.next(), sc.next());
        Course course4 = new Course(sc.next(), sc.next());

        Schedule sch = new Schedule();

        sch.addCourse(stu1, course2);
        sch.addCourse(stu1, course3);
        sch.addCourse(stu2, course1);
        sch.addCourse(stu3, course1);
        sch.addCourse(stu3, course2);
        sch.addCourse(stu3, course4);

        System.out.println("学生总数为："+stu3.getStuNum());
        System.out.println("课程总数为："+course4.getcNum());
        System.out.println("学生选课的总数为："+sch.GetSchNum());
        System.out.println("学生选课情况如下：");

        sch.displayCourse();
    }
}
